function loading() {
  // console.log(1, '-->>> loading');
}
function closeLoading() {
  // console.log(2, '-->>> closeLoading');
}
/**加载样式中间件 */
export const loadingStyleMid = async function (ctx, next) {
  if (!ctx.req.options.loading) {
    return next()
  }
  loading()
  await next()
  closeLoading()
}
